<?php
namespace app\admin\model;
use think\Model;
use think\Db;
class Use1 extends Model{
	
	protected $table = 'house_use1';
	protected $pk = 'u_id';
	
	
	public function admin()
    {
        return $this->belongsTo('admin');
    }
    public function add(){
		
		$data=[
				's_name'=>input("param.s_name"),
				's_user'=>input("param.s_user"),
				'u_tel'=>input("param.u_tel"),
				'u_weixin'=>input("param.u_weixin"),
				'u_status'=>input("param.u_status")
			];
			
		


			
			//halt($data);
		$use = new User();
		$result = $use->save($data);
		return $result;
	}
	

}
?>